/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"194D687B-B731-4FD7-AD73-610CC887B24A",variableType:4}
 */
var fTras = null;


/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"41093754-B92F-41A6-BB9E-17A97A4AEF8D"}
 * @AllowToRunInFind
 */
function Buscar(event) {
	if (controller.find() == false)
	{
		globals.DIALOGS.showErrorDialog('Error','Error en la busqueda','OK')
		return
	}
	
	trasdh_traslado_id = fTras
	
	var cuantos = controller.search()
	if (cuantos == 0)
	{
		controller.loadAllRecords()
		globals.DIALOGS.showWarningDialog('Aviso','No se encontraron resultados','OK')
	}
}


/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"20F67D54-D1BB-4A19-A67D-1FD4E3B92A49"}
 */
function IrADetalle(event) {
	forms.trasladodh_dtl.controller.show()
}
